import request from '@/utils/request'

// 查询翻车机信息列表
export function listDumper(query) {
  return request({
    url: '/basicInfo/dumper/list',
    method: 'get',
    params: query
  })
}

// 查询翻车机信息详细
export function getDumper(dumperId) {
  return request({
    url: '/basicInfo/dumper/' + dumperId,
    method: 'get'
  })
}

// 新增翻车机信息
export function addDumper(data) {
  return request({
    url: '/basicInfo/dumper',
    method: 'post',
    data: data
  })
}

// 修改翻车机信息
export function updateDumper(data) {
  return request({
    url: '/basicInfo/dumper',
    method: 'put',
    data: data
  })
}

// 删除翻车机信息
export function delDumper(dumperId) {
  return request({
    url: '/basicInfo/dumper/' + dumperId,
    method: 'delete'
  })
}
